package com.yanggu.scala.chapater10;

import java.util.HashSet;
import java.util.Set;

/**
 * @version V1.0
 * @author: YangGu
 * @date: 2020/7/13 11:04
 * @description:
 */
public class JavaHashSet {

    public static void main(String[] args) {
        //java的HashSet不能重复, 且存储和取出的顺序不一致
        Set<String> set = new HashSet<String>();
        set.add("java");
        set.add("scala");
        set.add("hadoop");
        set.add("hadoop");
        set.add("python");
        set.add("数仓");
        System.out.println(set);
    }

}
